<script type="text/javascript">
	$(document).ready(function(){
		$(".colorbox-images").colorbox({rel:'colorbox-images'});			
		
	});
</script>
<div class="container">
<?php echo $this->render('left.phtml'); ?>
    <div class="main-container">
        <div class="title-main-container">
            <span style="text-transform: uppercase;">Thông tin chi tiết</span>
        </div>
        
        <div class="content-evaluation" style="padding-bottom: 10px;">
            <div class="images-details">
                <a href="<?php echo $this->baseUrl('/public/files/fashion/').$this->data['image'];?>" class="colorbox-images">
                    <img title="Click vào hình để xem ảnh gốc" src="<?php echo $this->baseUrl('/public/files/fashion/').$this->data['image'];?>" />
                </a>
            </div>
            
            <div class="content-details">
                <span class="name-details"><?php echo $this->data['name']?></span>
                <span class="price-details">
                    Giá:&nbsp;
                    <?php if($this->data['sale_price'] != '0') : ?>
                    <b style="color: #ff4400;"><?php echo number_format($this->data['sale_price'],0,',','.')?>đ</b>
                    <span style="text-decoration: line-through;"><?php echo number_format($this->data['price'],0,',','.'); ?>đ</span>
                    <?php else : ?>
                    <b style="color: #ff4400;"><?php echo number_format($this->data['price'],0,',','.')?>đ</b>
                    <?php endif; ?>
                </span>
                <span class="size-details">Size: <b style="text-transform: uppercase;"><?php echo $this->data['size']?></b></span>
                <span class="color-details">Màu sắc: <b style="text-transform: uppercase;"><?php echo $this->data['color']?></b></span>
                <a style="clear: both;" class="button-cart" href="<?php echo $this->baseUrl('mua-hang').'?id='.$this->data['id'].'&type='.$this->data['type']; ?>">MUA HÀNG</a>
                <div class="address-shop">
                    <p>Cách thức mua hàng:</p>
                    <p>1. Nhấn mua hàng để t'house giao hàng tận nơi.</p>
                    <p>2. Mua hàng trực tiếp tại hệ thống cửa hàng của t'house:</p>
                    <p style="margin-left: 15px;">t'house 44-48 Nguyễn Bỉnh Khiêm, Hà Nội</p>
                </div>
            </div>
            
            <?php if($this->data['description'] != '') : ?>
            <div class="description">
                <span class="title-description">MÔ TẢ SẢN PHẨM</span>
                <div class="content-description"><?php echo $this->data['description']?></div>
            </div>
            <?php endif; ?>
        </div>
    </div>
    
    <?php
        if(count($this->fashion) > 0) :
        $common = new Admincp_Model_Common();
    ?>
    <div class="main-container">
        <div class="title-main-container">
            <span style="text-transform: uppercase;">Sản phẩm liên quan</span>
        </div>
        
        <?php foreach($this->fashion as $value) : ?>
        <div class="product-content">
            <div class="product-images">
                <img src="<?php echo $this->baseUrl('/public/files/fashion/thumbnail/').$value['thumbnail']; ?>" width="228" height="256"/>
                <p class="hover">
                    <a href="<?php echo $this->url(array('action'=>'detail','controller'=>'fashion','module'=>'default','title'=>$value['url'],'id'=>$value['id']),'fashiondetail'); ?>"></a>
                </p> 
                    <a class="button-hover" href="<?php echo $this->url(array('action'=>'detail','controller'=>'fashion','module'=>'default','title'=>$value['url'],'id'=>$value['id']),'fashiondetail'); ?>">XEM NGAY</a>
            </div>   
            <div class="product-info">
                <span><?php echo $value['name']; ?></span>
                <?php if($value['sale_price'] != '0') : ?>
                <span class="price"><?php echo $common->formatMoney($value['sale_price']); ?>đ</span>
                <span class="sale_price"><?php echo $common->formatMoney($value['price']); ?>đ</span>
                <?php else : ?>
                <span class="price"><?php echo $common->formatMoney($value['price']); ?>đ</span>
                <?php endif; ?>
            </div>    
        </div>
        <?php endforeach; ?>
    </div>
    <?php endif; ?>
</div>